url = '/account/login.html'
description = '登录页面模板'
layout = 'default'

[account]
redirect = "account/dashboard"
paramCode = "accountCode"

[session]
security = "all"

==
function onStart() {
  $this['redirect'] = URL::previous() ?: '/';
}
==
<link href="{{ 'assets/css/login.css'|theme }}" rel="stylesheet" type="text/css" />

<div id="contents">
    <h1 class="title_main">{{ 'New customer'|_ }}</h1>
	<section class="tac">

		<div class="login_button mh10" id="login_wrapper">
			<form action="/register.html" method="POST" id="registForm">
				<a class="_submit button_decide" href="#registForm">
					<span class="button_txt">{{ 'Register'|_ }}</span>
				</a>
				<input class="_submitHide" type="submit" name="" value="{{ 'Register'|_ }}">
			</form>
		</div>
	</section>
	<a name="current"></a>
    <h1 class="title_main">{{ 'Return customer'|_ }}</h1>
	<section class="memberlogin_area _amazonAuthFlg" id="memberlogin2">
		<section class="already_member">
			<div class="login_form_wrapper mb10">
				<form id="loginForm" action="" method="POST" data-request="onSignin" data-request-data="redirect:'{{ redirect }}'">
					<div class="login_input_area">
						<div class="login_ipass">
							<label class="ipass" for="login_mailaddress">{{ 'E-mail address'|_ }}</label>
							<input class="commonInput type_login" id="login_mailaddress" name="email" type="text" value="">
							<label class="ipass" for="login_password">{{ 'Password'|_ }}</label>
							<input class="commonInput type_login" id="login_password" name="password" type="password" maxlength="20" value="">
						</div>
						<a class="_submit button_decide mt15" href="#loginForm">
							<span class="button_txt">{{ 'Login'|_ }}</span>
						</a>
						<input class="_submitHide" type="submit" name="" value="{{ 'Login'|_ }}">
					</div>
				</form>
			</div>
			<a class="coreMore more_type_login" href="{{ 'account/pwd-recovery'|page }}">
				<div class="coreMore_textWrap">
					{{ "Click here if you can't login"|_ }}
					<span class="coreMore_icon arrow"></span>
				</div>
			</a>
		</section>
	</section>
</div>
<!-- Facebook Pixel Code -->
<script>
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '1973822869538409');
fbq('track', 'PageView');
fbq('track', 'CompleteRegistration');

</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=1973822869538409&ev=PageView&noscript=1"
/></noscript>
<!-- DO NOT MODIFY -->
<!-- End Facebook Pixel Code -->